<!doctype html>
<html lang="zh-CN">

<head>
    <title>使用困难报告</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.3, maximum-scale=1.0, user-scalable=yes,shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" type="image/x-ico" href="favicon.ico" />
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/all.min.css">
    <link rel="stylesheet" href="css/style.min.css">
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <script src="layui/layui.js"></script>
    <script src="js/jquery-3.3.1.min.js"></script>
</head>

<body>
<div class="flex-container">
    <nav class="nav top-nav">
        <div class="container">
            <div class="row">
               #include("language.html")
            </div>
        </div>
    </nav>
    <header class="masthead mb-auto">
        <div class="inner logo">
            <div class="webtitle">
                <div class="title-h3 masthead-brand">国产飞机运营伙伴当局信息系统</div>
                <div class="title-h4">Platform among CAAC MOU Partners for China-Made Aircraft</div>
            </div>
                #include("mainnav.html")
            <div class="search-form">
                #include("searchhead.html")
            </div>
        </div>
            #include("menu.html")
    </header>
    <div class="container">
        <div class="page-title">使用困难报告</div>
        <div class="row">
            <div class="col-3 left-bar">
                #include("srd_menu.html")
            </div>
            <div class="col-9 right-list">
                <h4 class="title-bar">1.基本信息</h4>

                <div class="tab-content">
                    <div class="tab-pane active" id="tab1">
                    <form onsubmit="return submitdata('report_true');">
                    <table class="table form2">
                        <tr>
                            <td>航空器注册号<span class="red">*</span></td>
                            <td>
                                <input type="text" required  id="aircraft_registration_number" class="form-control" data-toggle="tooltip" data-placement="bottom" title="航空器注册号，如果是军方飞机请输入机尾编号">
                            </td>
                            <td>报告编号</td>
                            <td><input type="text" id="report_number" class="form-control" value="#(OddNumbers ??)" disabled data-toggle="tooltip" data-placement="bottom" title="报告编号是对航空器合格证持有人提交的使用困难报告的编号，该编号针对每一份使用困难报告是唯一的标识"></td>
                        </tr>
                        <tr>
                            <td>航空器运营人<span class="red">*</span></td>
                            <td>
                                <input type="text" required id="air_operator" class="form-control"  data-toggle="tooltip" data-placement="bottom" title="航空器运营人">
                            </td>
                            <td>运行种类</td>
                            <td>
                                <input type="text" id="type_operation" class="form-control" data-toggle="tooltip" data-placement="bottom" title="指航空器执行任务的种类，包括“定期航班”、“特定任务”、“其它”">
                            </td>
                        </tr>
                        <tr>
                            <td>航班代码<span class="red">*</span></td>
                            <td>
                                <input type="text"  required id="flight_code" class="form-control" data-toggle="tooltip" data-placement="bottom" title="指航空器执行此航班过程中发生或发现的故障/缺陷">
                            </td>
                            <td>发生日期<span class="red">*</span></td>
                            <td>
                                <input type="input" required  id="date_occurrence" class="form-control" data-toggle="tooltip" data-placement="bottom" title="指故障/缺陷发生或发现的日期，填写形式：年－月－日">
                            </td>
                        </tr>
                        <tr>
                            <td>发生阶段<span class="red">*</span></td>
                            <td>
                                <select required id="occurrence_stage" class="custom-select" data-toggle="tooltip" data-placement="bottom" title="指故障或失效出现在航空器运行的哪个阶段">
                                    <option value="">请选择...</option>
                                    <option value="地面">地面</option>
                                    <option value="滑行">滑行</option>
                                    <option value="起飞">起飞</option>
                                    <option value="爬升">爬升</option>
                                    <option value="巡航">巡航</option>
                                    <option value="下降">下降</option>
                                    <option value="进近">进近</option>
                                    <option value="着陆">着陆</option>
                                    <option value="不详">不详</option>
                                    <option value="悬停">悬停</option>
                                </select>
                            </td>
                            <td>发生地点<span class="red">*</span></td>
                            <td>
                                <input type="text" required id="place_occurrence" class="form-control" data-toggle="tooltip" data-placement="bottom" title="指故障/缺陷发生或第一次被发现的地点">
                            </td>
                        </tr>
                        <tr>
                            <td>章节<span class="red">*</span></td>
                            <td colspan="3">
                                <div class="form-row">
                                    <div class="col">
                                        <input type="text" required id="chapter1" class="form-control" data-toggle="modal" data-target="#myModal" data-toggle="tooltip" data-placement="bottom">
                                    </div>
                                    <div class="col">
                                        <input type="text" id="chapter2" class="form-control" data-toggle="modal" data-target="#myModal" data-toggle="tooltip" data-placement="bottom">
                                    </div>
                                    <div class="col">
                                        <input type="text" id="chapter3" class="form-control" data-toggle="modal" data-target="#myModal" data-toggle="tooltip" data-placement="bottom">
                                    </div>
                                    <div class="col">
                                        <input type="text" id="chapter4" class="form-control" data-toggle="modal" data-target="#myModal" data-toggle="tooltip" data-placement="bottom">
                                    </div>
                                    <div class="col">
                                        <input type="text" id="chapter5" class="form-control" data-toggle="modal" data-target="#myModal" data-toggle="tooltip" data-placement="bottom">
                                    </div>
                                </div>
                                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                    <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable zj">
                                        <div class="modal-content">
                                            <div class="modal-header">
                                                <h4 class="modal-title" id="myModalLabel">章节</h4>
                                            </div>
                                            <div class="modal-body">
                                                <table class="table table-striped">
                                                    <thead>
                                                        <tr class="row">
                                                            <td class="col-2">选择</td>
                                                            <td class="col-2">代码</td>
                                                            <td class="col">名称</td>
                                                        </tr>
                                                    </thead>
                                                    <tbody id="xzk">
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" value="时限/维修检查施工" onclick="chapter(this);"></td>
                                                            <td class="col-2">05</td>
                                                            <td class="col"><label for="05">时限/维修检查施工</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="尺寸区域"></td>
                                                            <td class="col-2">06</td>
                                                            <td class="col"><label for="06">尺寸区域</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="顶升和支持"></td>
                                                            <td class="col-2">07</td>
                                                            <td class="col"><label for="07">顶升和支持</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="平衡与称重"></td>
                                                            <td class="col-2">08</td>
                                                            <td class="col"><label for="08">平衡与称重</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="牵引与滑行"></td>
                                                            <td class="col-2">09</td>
                                                            <td class="col"><label for="09">牵引与滑行</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="停放与系留"></td>
                                                            <td class="col-2">10</td>
                                                            <td class="col"><label for="10">停放与系留</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="标牌和标志"></td>
                                                            <td class="col-2">11</td>
                                                            <td class="col"><label for="11">标牌和标志</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="勤务"></td>
                                                            <td class="col-2">12</td>
                                                            <td class="col"><label for="12">勤务</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="直升机振动"></td>
                                                            <td class="col-2">18</td>
                                                            <td class="col"><label for="18">直升机振动</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="系统标准施工"></td>
                                                            <td class="col-2">20</td>
                                                            <td class="col"><label for="20">系统标准施工</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="空调系统"></td>
                                                            <td class="col-2">21</td>
                                                            <td class="col"><label for="21">空调系统</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="自动飞行"></td>
                                                            <td class="col-2">22</td>
                                                            <td class="col"><label for="22">自动飞行</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="通讯"></td>
                                                            <td class="col-2">23</td>
                                                            <td class="col"><label for="23">通讯</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="电源"></td>
                                                            <td class="col-2">24</td>
                                                            <td class="col"><label for="24">电源</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="设备/装饰"></td>
                                                            <td class="col-2">25</td>
                                                            <td class="col"><label for="25">设备/装饰</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="防火"></td>
                                                            <td class="col-2">26</td>
                                                            <td class="col"><label for="26">防火</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="飞行操纵"></td>
                                                            <td class="col-2">27</td>
                                                            <td class="col"><label for="27">飞行操纵</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="燃油"></td>
                                                            <td class="col-2">28</td>
                                                            <td class="col"><label for="28">燃油</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="液压动力-液压动力控制"></td>
                                                            <td class="col-2">29</td>
                                                            <td class="col"><label for="29">液压动力-液压动力控制</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="防冻和排雨"></td>
                                                            <td class="col-2">30</td>
                                                            <td class="col"><label for="30">防冻和排雨</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="仪表"></td>
                                                            <td class="col-2">31</td>
                                                            <td class="col"><label for="31">仪表</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="起落架"></td>
                                                            <td class="col-2">32</td>
                                                            <td class="col"><label for="32">起落架</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="起落架"></td>
                                                            <td class="col-2">32</td>
                                                            <td class="col"><label for="32">起落架</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="灯光"></td>
                                                            <td class="col-2">33</td>
                                                            <td class="col"><label for="33">灯光</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="导航"></td>
                                                            <td class="col-2">34</td>
                                                            <td class="col"><label for="34">导航</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="氧气"></td>
                                                            <td class="col-2">35</td>
                                                            <td class="col"><label for="35">氧气</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="气源"></td>
                                                            <td class="col-2">36</td>
                                                            <td class="col"><label for="36">气源</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="真空"></td>
                                                            <td class="col-2">37</td>
                                                            <td class="col"><label for="37">真空</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="水/污水"></td>
                                                            <td class="col-2">38</td>
                                                            <td class="col"><label for="38">水/污水</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="电子面板"></td>
                                                            <td class="col-2">39</td>
                                                            <td class="col"><label for="39">电子面板</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="多系统"></td>
                                                            <td class="col-2">40</td>
                                                            <td class="col"><label for="40">多系统</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="水压舱"></td>
                                                            <td class="col-2">41</td>
                                                            <td class="col"><label for="41">水压舱</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="综合模块化航电"></td>
                                                            <td class="col-2">42</td>
                                                            <td class="col"><label for="42">综合模块化航电</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="客舱系统"></td>
                                                            <td class="col-2">44</td>
                                                            <td class="col"><label for="44">客舱系统</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="中央维护系统"></td>
                                                            <td class="col-2">45</td>
                                                            <td class="col"><label for="45">中央维护系统</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="信息系统"></td>
                                                            <td class="col-2">46</td>
                                                            <td class="col"><label for="46">信息系统</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="氮气发生系统"></td>
                                                            <td class="col-2">47</td>
                                                            <td class="col"><label for="47">氮气发生系统</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="空中燃油分配"></td>
                                                            <td class="col-2">48</td>
                                                            <td class="col"><label for="48">空中燃油分配</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="机载辅助动力"></td>
                                                            <td class="col-2">49</td>
                                                            <td class="col"><label for="49">机载辅助动力</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="货舱"></td>
                                                            <td class="col-2">50</td>
                                                            <td class="col"><label for="50">货舱</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="标准施工/结构"></td>
                                                            <td class="col-2">51</td>
                                                            <td class="col"><label for="51">标准施工/结构</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="舱门"></td>
                                                            <td class="col-2">52</td>
                                                            <td class="col"><label for="52">舱门</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="机身"></td>
                                                            <td class="col-2">53</td>
                                                            <td class="col"><label for="53">机身</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="吊舱/吊架"></td>
                                                            <td class="col-2">54</td>
                                                            <td class="col"><label for="54">吊舱/吊架</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="安定面"></td>
                                                            <td class="col-2">55</td>
                                                            <td class="col"><label for="55">安定面</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="窗"></td>
                                                            <td class="col-2">56</td>
                                                            <td class="col"><label for="56">窗</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="机翼"></td>
                                                            <td class="col-2">57</td>
                                                            <td class="col"><label for="57">机翼</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="螺旋桨/推进器"></td>
                                                            <td class="col-2">61</td>
                                                            <td class="col"><label for="61">螺旋桨/推进器</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="主旋翼"></td>
                                                            <td class="col-2">62</td>
                                                            <td class="col"><label for="62">主旋翼</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="主旋翼传动"></td>
                                                            <td class="col-2">63</td>
                                                            <td class="col"><label for="63">主旋翼传动</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="尾桨"></td>
                                                            <td class="col-2">64</td>
                                                            <td class="col"><label for="64">尾桨</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="尾桨传动"></td>
                                                            <td class="col-2">65</td>
                                                            <td class="col"><label for="65">尾桨传动</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="传动装置"></td>
                                                            <td class="col-2">66</td>
                                                            <td class="col"><label for="66">传动装置</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="旋翼飞行操纵"></td>
                                                            <td class="col-2">67</td>
                                                            <td class="col"><label for="67">旋翼飞行操纵</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="动力装置"></td>
                                                            <td class="col-2">71</td>
                                                            <td class="col"><label for="71">动力装置</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="涡轮/涡桨发动机"></td>
                                                            <td class="col-2">72</td>
                                                            <td class="col"><label for="72">涡轮/涡桨发动机</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="发动机燃油/控制"></td>
                                                            <td class="col-2">73</td>
                                                            <td class="col"><label for="73">发动机燃油/控制</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="点火"></td>
                                                            <td class="col-2">74</td>
                                                            <td class="col"><label for="74">点火</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="空气"></td>
                                                            <td class="col-2">75</td>
                                                            <td class="col"><label for="75">空气</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="发动机控制"></td>
                                                            <td class="col-2">76</td>
                                                            <td class="col"><label for="76">发动机控制</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="发动机指示-发动机指示控制"></td>
                                                            <td class="col-2">77</td>
                                                            <td class="col"><label for="77">发动机指示-发动机指示控制</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="发动机排气"></td>
                                                            <td class="col-2">78</td>
                                                            <td class="col"><label for="78">发动机排气</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="发动机滑油"></td>
                                                            <td class="col-2">79</td>
                                                            <td class="col"><label for="79">发动机滑油</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="起动"></td>
                                                            <td class="col-2">80</td>
                                                            <td class="col"><label for="80">起动</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="涡轮增压"></td>
                                                            <td class="col-2">81</td>
                                                            <td class="col"><label for="81">涡轮增压</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="喷水"></td>
                                                            <td class="col-2">82</td>
                                                            <td class="col"><label for="82">喷水</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="附件齿轮箱"></td>
                                                            <td class="col-2">83</td>
                                                            <td class="col"><label for="83">附件齿轮箱</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="加力装置"></td>
                                                            <td class="col-2">84</td>
                                                            <td class="col"><label for="84">加力装置</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="活塞发动机"></td>
                                                            <td class="col-2">85</td>
                                                            <td class="col"><label for="85">活塞发动机</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="图表"></td>
                                                            <td class="col-2">91</td>
                                                            <td class="col"><label for="91">图表</label></td>
                                                        </tr>
                                                        <tr class="row">
                                                            <td class="col-2"><input type="checkbox" onclick="chapter(this);"  value="电气安装"></td>
                                                            <td class="col-2">92</td>
                                                            <td class="col"><label for="92">电气安装</label></td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                            <div class="modal-footer">
                                                <p>最多选择5项，如有多个请按轻重情况依次选择！</p>
                                                <button type="button" class="btn btn-primary confirm" data-dismiss="modal">关闭</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>飞行类别<span class="red">*</span></td>
                            <td colspan="4">
                                <select required id="flight_category" class="custom-select" data-toggle="tooltip" data-placement="bottom">
                                    <option value="">请选择...</option>
                                    <option value="一般商业飞行">一般商业飞行</option>
                                    <option value="旋翼机机外载荷作业飞行">旋翼机机外载荷作业飞行</option>
                                    <option value="训练飞行">训练飞行</option>
                                    <option value="空中游览飞行">空中游览飞行</option>
                                    <option value="农林喷洒作业飞行">农林喷洒作业飞行</option>
                                    <option value="其他">其他</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>故障件名称<span class="red">*</span></td>
                            <td colspan="3">
                                <input type="text" required id="name_faulty_part" class="form-control" data-toggle="tooltip" data-placement="bottom">
                            </td>
                        </tr>
                        <tr>
                            <td>预防/紧急措施<span class="red">*</span></td>
                            <td colspan="3">
                                
                                <input type="text" required class="form-control" data-toggle="modal" data-target="#exampleModalLong" id="预防紧急措施view">
                                
                                <!-- Modal -->
                                <div class="modal fade" id="exampleModalLong" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
                                  <div class="modal-dialog modal-dialog-scrollable" role="document">
                                    <div class="modal-content">
                                      <div class="modal-header">
                                        <h5 class="modal-title" id="exampleModalLongTitle">选择</h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                          <span aria-hidden="true">&times;</span>
                                        </button>
                                      </div>
                                      <div class="modal-body">
                                        <table class="table table-striped">
                                            <thead>
                                                <tr class="row">
                                                    <td class="col-2">选择</td>
                                                    <td class="col-2">代码</td>
                                                    <td class="col">名称</td>
                                                </tr>
                                            </thead>
                                            <tbody id="xzk1" onclick="addtext('预防紧急措施view','xzk1');">
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="非计划着陆(备降/改航)"></td>
                                                    <td class="col-2">01</td>
                                                    <td class="col"><label for="05">非计划着陆(备降/改航)</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="紧急下降"></td>
                                                    <td class="col-2">02</td>
                                                    <td class="col"><label for="05">紧急下降</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="中断起飞"></td>
                                                    <td class="col-2">03</td>
                                                    <td class="col"><label for="05">中断起飞</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="滑回"></td>
                                                    <td class="col-2">04</td>
                                                    <td class="col"><label for="05">滑回</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="发动机关车"></td>
                                                    <td class="col-2">05</td>
                                                    <td class="col"><label for="05">发动机关车</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="释放灭火瓶"></td>
                                                    <td class="col-2">06</td>
                                                    <td class="col"><label for="05">释放灭火瓶</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="使系统失效/断开电路"></td>
                                                    <td class="col-2">07</td>
                                                    <td class="col"><label for="05">使系统失效/断开电路</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="客舱释压"></td>
                                                    <td class="col-2">08</td>
                                                    <td class="col"><label for="05">客舱释压</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="抛油"></td>
                                                    <td class="col-2">09</td>
                                                    <td class="col"><label for="05">抛油</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="无措施"></td>
                                                    <td class="col-2">10</td>
                                                    <td class="col"><label for="05">无措施</label></td>
                                                </tr>
                                                <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="中止进进"></td>
                                                    <td class="col-2">11</td>
                                                    <td class="col"><label for="05">中止进进</label></td>
                                                </tr>
                                                 <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="其他"></td>
                                                    <td class="col-2">12</td>
                                                    <td class="col"><label for="05">其他</label></td>
                                                </tr>
                                                 <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="自旋"></td>
                                                    <td class="col-2">13</td>
                                                    <td class="col"><label for="05">自旋</label></td>
                                                </tr>
                                                 <tr class="row">
                                                    <td class="col-2"><input type="checkbox" value="不详"></td>
                                                    <td class="col-2">14</td>
                                                    <td class="col"><label for="05">不详</label></td>
                                                </tr>
                                                
                                            </tbody>
                                        </table>
                                      </div>
                                      <div class="modal-footer">
                                        <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
                                      </div>
                                    </div>
                                  </div>
                                </div>

                            </td>
                        </tr>
                        <tr>
                            <td>故障现象<span class="red">*</span></td>
                            <td colspan="3">
                                
                                <input type="text" required class="form-control" data-toggle="modal" data-target="#故障现象dialog" id="故障现象view">
                                
                                <!-- Modal -->
                                <div class="modal fade" id="故障现象dialog" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
                                  <div class="modal-dialog modal-dialog-scrollable" role="document">
                                    <div class="modal-content">
                                      <div class="modal-header">
                                        <h5 class="modal-title" id="exampleModalLongTitle">选择</h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                          <span aria-hidden="true">&times;</span>
                                        </button>
                                      </div>
                                      <div class="modal-body">
                                        <table class="table table-striped">
                                            <thead>
                                                <tr class="row">
                                                    <td class="col-2">选择</td>
                                                    <td class="col-2">代码</td>
                                                    <td class="col">名称</td>
                                                </tr>
                                            </thead>
                                            <tbody id="xzk2" onclick="addtext('故障现象view','xzk2');">
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="着火"></td>
                                                        <td class="col-2">1</td>
                                                        <td class="col"><label for="05">着火</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="烟雾异味火花"></td>
                                                        <td class="col-2">2</td>
                                                        <td class="col"><label for="05">烟雾异味火花</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="外物损伤"></td>
                                                        <td class="col-2">3</td>
                                                        <td class="col"><label for="05">外物损伤</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="空中部件脱离"></td>
                                                        <td class="col-2">4</td>
                                                        <td class="col"><label for="05">空中部件脱离</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="震动/抖动"></td>
                                                        <td class="col-2">5</td>
                                                        <td class="col"><label for="05">震动/抖动</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="影响飞行控制"></td>
                                                        <td class="col-2">6</td>
                                                        <td class="col"><label for="05">影响飞行控制</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="多种失效"></td>
                                                        <td class="col-2">7</td>
                                                        <td class="col"><label for="05">多种失效</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="电力损失"></td>
                                                        <td class="col-2">8</td>
                                                        <td class="col"><label for="05">电力损失</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="飞行姿态仪表"></td>
                                                        <td class="col-2">9</td>
                                                        <td class="col"><label for="05">飞行姿态仪表</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="警告指示"></td>
                                                        <td class="col-2">10</td>
                                                        <td class="col"><label for="05">警告指示</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="油液损失"></td>
                                                        <td class="col-2">11</td>
                                                        <td class="col"><label for="05">油液损失</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="无法测试"></td>
                                                        <td class="col-2">12</td>
                                                        <td class="col"><label for="05">无法测试</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="超温"></td>
                                                        <td class="col-2">13</td>
                                                        <td class="col"><label for="05">超温</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="假警告"></td>
                                                        <td class="col-2">14</td>
                                                        <td class="col"><label for="05">假警告</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="其他"></td>
                                                        <td class="col-2">15</td>
                                                        <td class="col"><label for="05">其他</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="无警告指示"></td>
                                                        <td class="col-2">16</td>
                                                        <td class="col"><label for="05">无警告指示</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="部分动力损失"></td>
                                                        <td class="col-2">17</td>
                                                        <td class="col"><label for="05">部分动力损失</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="影响系统"></td>
                                                        <td class="col-2">18</td>
                                                        <td class="col"><label for="05">影响系统</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="发动机机匣穿透"></td>
                                                        <td class="col-2">19</td>
                                                        <td class="col"><label for="05">发动机机匣穿透</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="维护不当"></td>
                                                        <td class="col-2">20</td>
                                                        <td class="col"><label for="05">维护不当</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="发动机起火"></td>
                                                        <td class="col-2">21</td>
                                                        <td class="col"><label for="05">发动机起火</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="发动机停车（包含人工，自动）"></td>
                                                        <td class="col-2">22</td>
                                                        <td class="col"><label for="05">发动机停车（包含人工，自动）</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="严重故障报告"></td>
                                                        <td class="col-2">23</td>
                                                        <td class="col"><label for="05">严重故障报告</label></td>
                                                    </tr>
                                                    
                                                    <tr class="row">
                                                        <td class="col-2"><input type="checkbox" value="不详"></td>
                                                        <td class="col-2">24</td>
                                                        <td class="col"><label for="05">不详</label></td>
                                                    </tr>
                                            </tbody>
                                        </table>
                                      </div>
                                      <div class="modal-footer">
                                        <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                                
                            </td>
                        </tr>

                    </table>
                    <h4 class="title-bar">2.问题描述和纠正措施</h4>
                    <table class="table form2">
                        <tr>
                            <td>
                                <textarea oninput="txtnum(this,'zs');" required maxlength=800 id="content" cols="30" rows="4" class="form-control" data-toggle="tooltip" data-placement="bottom" title="描述航空器在使用过程中出现的故障、失效、缺陷等，内容主要包括故障出现时航空器的状况、异常现象、机组采取的措施、以及地面检查/测试发现的主要问题，排除故障的过程，参考的资料和更换的部件。如果是航空器或部件结构损伤/腐蚀，则要描述损伤/腐蚀的详细位置、损伤尺寸、腐蚀状况、腐蚀级别等"></textarea>
                                <span class="red">*</span>(已经输入<span id="zs">0</span>字 共可以输入800字)
                            </td>
                        </tr>
                    </table>
                    <h4 class="title-bar">3.提交人信息</h4>
                    <table class="table form2">
                        <tr>
                            <td>提交人<span class="red">*</span></td>
                            <td><input type="text" required id="submitter" class="form-control" data-toggle="tooltip" data-placement="bottom" title="指提交此报告的人员"></td>
                            <td>电子邮箱<span class="red">*</span></td>
                            <td><input type="text" required id="mail_box" class="form-control" data-toggle="tooltip" data-placement="bottom" title="提交人的联系E－MAIL地址"></td>
                            <td>提交日期<span class="red">*</span></td>
                            <td><input type="input" required id="date_submission" class="form-control" data-toggle="tooltip" data-placement="bottom" title="提交此报告的日期，形式为：年－月－日"></td>
                        </tr>
                        <tr>
                            <td>电话<span class="red">*</span></td>
                            <td><input type="text" required id="phone" class="form-control" data-toggle="tooltip" data-placement="bottom" title="提交人的联系电话"></td>
                            <td>提交单位<span class="red">*</span></td>
                            <td><input type="text" required id="submission_unit" class="form-control" data-toggle="tooltip" data-placement="bottom"></td>
                            <td></td>
                            <td></td>
                        </tr>
                    </table>
                    <div class="row text-center mb-4 mt-4">
                        <div class="col-6">
                            <button type="submit" class="btn btn-primary">提交</button>
                        </div>
                        <div class="col-6">
                            <button type="reset" class="btn btn-warning">清除表单</button>
                        </div>
                    </div>
                    </form>
                </div>
                    <div class="tab-pane fade" id="tab2">
                        <table class="table table-striped table-responsive">
                            <thead>
                                <tr>
                                    <td>序号</td>
                                    <td>报告编号</td>
                                    <td>航空器注册号</td>
                                    <td>机型</td>
                                    <td>章节</td>
                                    <td>故障现象</td>
                                    <td>发生地点</td>
                                    <td>发生日期</td>
                                    <td>操作</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>SDR20200001</td>
                                    <td>HK3433</td>
                                    <td>A737</td>
                                    <td>11111</td>
                                    <td>2222</td>
                                    <td>中国北京</td>
                                    <td>2020-03-20</td>
                                    <td>
                                        <a href="#"><i class="fas fa-edit"></i></a>
                                        <a href="#"><i class="fas fa-trash"></i></a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <nav aria-label="Page navigation" class="mt-4">
                            <ul class="pagination justify-content-center pagination-sm">
                                <li class="page-item disabled">
                                    <a class="page-link" href="#" aria-label="Previous">
                                        <span aria-hidden="true">&laquo;</span>
                                        <span class="sr-only">上一页</span>
                                    </a>
                                </li>
                                <li class="page-item active"><a class="page-link" href="#">1</a></li>
                                <li class="page-item"><a class="page-link" href="#">2</a></li>
                                <li class="page-item">
                                    <a class="page-link" href="#" aria-label="Next">
                                        <span aria-hidden="true">&raquo;</span>
                                        <span class="sr-only">下一页</span>
                                    </a>
                                </li>
                            </ul>
                        </nav>
                    </div>
                    <div class="tab-pane fade" id="tab3">
                        #if(USER)
                        #SecurityInformationMfdrList(type='report_true',userid=USER.id)
                        <table class="table table-striped table-responsive">
                            <thead>
                                <tr>
                                    <td>序号</td>
                                    <td>报告编号</td>
                                    <td>航空器注册号</td>
                                    <td>故障现象</td>
                                    <td>发生地点</td>
                                    <td>发生日期</td>
                                    <td>上报日期</td>
                                </tr>
                            </thead>
                            <tbody>
                                
                                #for(entity : SecurityInformationMfdrList.list)
                                <tr>
                                    <td>#(entity.id ??)</td>
                                    <td>#(entity.report_number ??)</td>
                                    <td>#(entity.aircraft_registration_number ??)</td>
                                    <td>#(entity.fault_phenomenon ??)</td>
                                    <td>#(entity.place_occurrence ??)</td>
                                    <td>#date(entity.date_occurrence,'yyyy-MM-dd' ??)</td>
                                    <td>#date(entity.date_submission,'yyyy-MM-dd' ??)</td>
                                </tr>
                                #end
                                
                            </tbody>
                        </table>
                        
                        #SecurityInformationMfdrPaginate()
                        <nav aria-label="Page navigation example" class="mt-4">
                            <ul class="pagination justify-content-center ">
                                #for(page : pages)
                                <li class="page-item #(page.style ??)">
                                    <a class="page-link" href="#(page.url ??)?language=ch&jmp=已上报">
                                        #(page.text ??)
                                    </a>
                                </li>
                                #end
                            </ul>
                        </nav>
                        #end
                        
                        #end
                        #end
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
#include("bottom.html")

<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
    function addtext(id,dataid){
        
        var str = "";
        var checkboxs = $("#"+dataid+" input[type='checkbox']:checked");
        
        for(var a=0;a<checkboxs.length;a++){
            str += " | " + $(checkboxs[a]).val()
        }
        
        $("#"+id).val(str);
        
    }
</script>
<script>
layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //执行一个laydate实例
  laydate.render({
    elem: '#date_occurrence' //指定元素
  });
  //执行一个laydate实例
  laydate.render({
    elem: '#date_submission' //指定元素
  });
});
</script>
<script>
    
    #if(C.get('jmp'))
        $('##(C.get('jmp'))').click();
    #end
    
    function chapter(obj){
        
        var arr = new Array()
        arr[0] = $("#chapter1");
        arr[1] = $("#chapter2");
        arr[2] = $("#chapter3");
        arr[3] = $("#chapter4");
        arr[4] = $("#chapter5");
       
        
       if($(obj).is(':checked')){
           
            for(var a=0;a<arr.length;a++){
                if(arr[a].val()==""){
                     arr[a].val($(obj).val());
                     break;
                }
            }
           
       }else{
           
           for(var a=0;a<arr.length;a++){
                if(arr[a].val()==$(obj).val()){
                     arr[a].val("");
                     break;
                }
            }
            
            var checkboxs = $("#xzk input[type='checkbox']:not(:checked)")
        for(var a=0;a<checkboxs.length;a++){
            $(checkboxs[a]).attr('disabled', false);
        }
            
       }
       
       if(arr[0].val()!="" && arr[1].val()!="" && arr[2].val()!="" && arr[3].val()!="" && arr[4].val()!=""){
           
        var checkboxs = $("#xzk input[type='checkbox']:not(:checked)")
        for(var a=0;a<checkboxs.length;a++){
            $(checkboxs[a]).attr('disabled', true);
        }
           
       }
       
       
    }
    
    function submitdata(type) {
        
        
        var checkboxs = $("#xzk1 input[type='checkbox']:checked")
        
        if(checkboxs.length<1){
            alert("预防/紧急措施至少要选择一项");
            return false;
        }
        
        var arr = new Array();
        
        for(var a=0;a<checkboxs.length;a++){
            arr[a]=$(checkboxs[a]).val();
        }
        
        var checkboxs1 = $("#xzk2 input[type='checkbox']:checked")
        if(checkboxs1.length<1){
            alert("故障现象至少要选择一项");
            return false;
        }
        var arr1 = new Array();
        
        for(var a=0;a<checkboxs.length;a++){
            arr1[a]=$(checkboxs1[a]).val();
        }
        
        var url = "/securityinformationmfdr/submit";

        var data = {
            
            "mfdr.aircraft_registration_number":$("#aircraft_registration_number").val(),//航空器注册号
            "mfdr.air_operator":$("#air_operator").val(),//航空运营人
            "mfdr.report_number":$("#report_number").val(),//报告编号
            "mfdr.type_operation":$("#type_operation").val(),//运行种类
            "mfdr.flight_code":$("#flight_code").val(),//航班代码
            "mfdr.date_occurrence":$("#date_occurrence").val(),//发生日期
            "mfdr.occurrence_stage":$("#occurrence_stage").val(),//发生阶段
            "mfdr.place_occurrence":$("#place_occurrence").val(),//发生地点
            "mfdr.chapter":$("#chapter1").val()+","+$("#chapter2").val()+","+$("#chapter3").val()+","+$("#chapter4").val()+","+$("#chapter5").val(),//章节
            "mfdr.flight_category":$("#flight_category").val(),//飞行类别
            "mfdr.name_faulty_part":$("#name_faulty_part").val(),//故障件名称
            "pems":arr,//预防/紧急措施
            "fps":arr1,//故障现象
            //"mfdr.rules_regulations":$("#rules_regulations").val(),//规章依据
            "mfdr.content":$("#content").val(),//问题描述和纠正措施
            "mfdr.submitter":$("#submitter").val(),//提交人
            "mfdr.mail_box":$("#mail_box").val(),//电子邮箱
            "mfdr.date_submission":$("#date_submission").val(),//提交日期
            "mfdr.phone":$("#phone").val(),//电话
            "mfdr.submission_unit":$("#submission_unit").val(),//提交单位
            "mfdr.type":type,//提交状态
            "mfdr.language":"中文"
            
        }
        
        $.post(url,data,function(e){
    
            if(e.state == "ok"){
                alert("提交成功");
                window.location.reload();
            }else{
                alert(e.msg);
                
            }
    
        });
        
        return false;
        
    }

</script>
<script>

    function txtnum(t,id){
        var z = $(t).val();
        $('#'+id).html(z.length);
    }

</script>
<script>
	$(function () { $("[data-toggle='tooltip']").tooltip(); });
</script>
</body>
</html>